﻿@model Tasks.UI.Models.SystemSetting.setETMLogoModel
@{
    ViewBag.Tab = "info";
    ViewBag.Title = "Logo设置";
}
@section head{
    <script type="text/javascript">
        function funSubmit(src) {
            $("#act").val(src);
            $("form").submit();
        }
    </script>
}
<div class="navTitle">
    <div class="left">
        <img src="/themes/default/dijie/images/main.gif">办公 >> Logo设置 >> 操作</div>
    <div class="right">
        <a href="#" class="cursor">系统桌面</a> <a href="javascript:void(0)">个人资料</a> <a href="/dijieaccount/modifypassword?theme=default">
            密码设置</a>
    </div>
    <div class="del_float">
    </div>
</div>
@using (Html.BeginForm("SetLogo", "SystemSetting", new { id = "form1" }, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.HiddenFor(t => t.act)
    <input id="Logo" name="Logo" type="hidden" value="@Model.Logo"/>
    <div id="container">
        @Html.OutputMessage(Model.Message, Model.MessageType)
        <table style="width: 100%;" border="0" width="100%" cellpadding="0" cellspacing="0"
            class="tablestyle">
            <tr>
                <td style="text-align: center; background-color: #e8e8e8">
                    <strong>Logo图片：</strong>
                </td>
                <td>
                    @if (!string.IsNullOrEmpty(Model.Logo))
                    {
                        <img src="@Config.GetResourceUrl(Model.Logo)" alt="" border="0" width="158px" height="55px"/>
                    }
                    else
                    {
                        <img src="/images/album_upload_dtbg.jpg" alt="" border="0" width="158px" height="55px" />
                    }
                    <input id="ImgPaths" type="hidden" name="ImgPaths" value="@Model.Logo"/>
                    <ul>
                        <li>
                            <input id="File1" name="files" type="file" /></li>
                        <li>(JPG、PNG格式，JPG品质可在9-10之间，为保证最佳效果,尺寸建议为158*55)</li>
                        <li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <div class="Button_out">
                        <a href="javascript:void(0)" onclick="funSubmit('save')">保存</a> <a href="javascript:history.back(-1)">
                            返回</a></div>
                </td>
            </tr>
        </table>
    </div>
}
